<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8" isELIgnored="false" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"+ request.getServerName() + ":" + request.getServerPort()+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%> 
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<script src="<%=basePath%>resources/js/common/plugin/bootstrap/js/bootstrap-validation.js"></script>


<title>新增业户信息</title>

<style type="text/css"> 
.modal-table{width:100%;}
.modal-table tr{line-height:35px;}
.modal-table th{width:14%;text-align:right;padding-right:10px;font-weight: normal;}
.modal-table td{width:36%;}
.date-alarm-ul {
    border: 1px solid #dedede;
}
.fl {
    float: left;
}
input{
border: 1px solid #dedede;
padding-left:10px;
}
 #inputStartDate,#inputEndDate{
	width:180px;
	height:28px;
	padding-left:30px;
	} 
/* .alertaddup {cursor:pointer; position:absolute; left:180px; top:0;} */
#province,#city{
	color:#444 !important;
	padding-top:5px\0;
}
.textbox .textbox-text {
	padding: 0px 10px !important;
}
</style> 
<script type="text/javascript">
var id = '${id}';
var action = '${action}';
</script>
</head>
<body>

<form id="enterpriseForm">
			<input type="hidden" id="platform" value="${enterprise.platformId}"/>
			<input type="hidden" id="bizScope" value="${enterprise.bizScopeId}"/>
			<input type="hidden" id="economy_type" value="${enterprise.economy_type_id}"/>
			<input type="hidden" id="lssuingAuth" value="${enterprise.lssuingAuthId}"/>
			<input type="hidden" id="action" name="action" value="${action}"/>
			<input type="hidden" name="id" id="id" value="${enterprise.id}"/>
			<div id="baseInfoDiv" class="pr">
			<table class="modal-table">
 				<tr>
					<th>业户名称：</th>
					<td>
						<input type="text" style="height: 24px;width:208px;padding-left:8px" name="name" id="name" value="${enterprise.name}" placeholder="名称长度3-30"
						/><span id="namemsg"><font style="color:#f00;margin-left:3px">*</font></span>
					</td>
					<th>接入平台：</th>
					<td >
						<div id = "platformList">
							 <select class="userInput fl" style="height: 28px;width:208px;" name="platformId" id="platformId" value="${enterprise.platformId}" ></select> 
							 <font style="color:#f00;">*</font>
						</div>
					</td>					
				</tr>
 				<tr>
 					<th>经营范围：</th>
					<td id="bizScopeList">
						<select style="height: 24px;width:208px;" id="bizScopeId" name="bizScopeId" ></select>
					</td>
					<th>所属区域：</th>
					<td>
						<input type="text" style="height: 24px;width:206px;" name="areaId" id="areaId" value="${enterprise.areaId}"/>
						<font style="color:#f00;">*</font>
					</td>
				</tr>
				<tr>
					<th>经济类型：</th>
					<td>
						<select style="height: 24px;width:208px;" id="economy_type_id" name="economy_type_id" value="${enterprise.economy_type_id}" ></select>
					</td>
					<th>经营许可证号：</th>
					<td>
						<input type="text" style="height: 24px;width:37px;padding-left:12px;" name="province" id="province" value="冀"  />
							<span style = "padding-right:5px;padding-left:5px;">交运管许可</span>
						<input type="text" style="height: 24px;width:37px;padding-left:12px;" name="city" id="city" value="" />
							<span style = "padding-right:3px;padding-left:3px;">字</span>
						<input type="text" style="height: 24px;width:150px;" name="bizLicenseNum" id="bizLicenseNum" value="${enterprise.bizLicenseNum}"/>
						 	<span style = "padding-left:2px;">号</span>
						 <font style="color:#f00;">*</font>
					</td>
				</tr>
				<tr>
					<th>发证机关：</th>
					<td id="lssuingAuthList">
						<select style="height: 24px;width:208px;border: 1px solid #A9A9A9;" id="lssuingAuthId" name= "lssuingAuthId" value="${enterprise.lssuingAuthId}" ></select>
					</td>
					<th>证件有效期：</th>
					<td>
						<input type="text" id="invalidStartTime" name= "invalidStartTime"  value="<fmt:formatDate value='${enterprise.invalidStartTime}' pattern='yyyy-MM-dd'/>" 
						style="height: 24px;width:160px;padding-left:12px;margin-top:5px;border: 1px solid #dedede;"  class="query-input fl Wdate Time_input" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})"/>
	                    <span style = "padding-right:5px;padding-left:5px;float:left;">至</span>
	                    <input type="text" id="invalidEndTime" name= "invalidEndTime" value="<fmt:formatDate value='${enterprise.invalidEndTime}' pattern='yyyy-MM-dd'/>" 
	                    style="height: 24px;width:160px;padding-left:12px;margin-top:5px;border: 1px solid #dedede;" class="query-input fl Wdate Time_input" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" />
               		</td>
				</tr>
				<tr>
					
               		<th>法人代表：</th>
					<td>
						<input type="text" style="height: 24px;width:208px;" name="corporate" id="corporate" value="${enterprise.corporate}"/>
					</td>
					<th>联系人：</th>
					<td>
						<input type="text" style="height: 24px;width:208px;" name="contact" id="contact" value="${enterprise.contact}"
						/>
					</td>
				</tr>
				<tr>
					<th>联系号码：</th>
					<td>
						<input type="text" style="height: 24px;width:208px;" name="phone" id="phone" value="${enterprise.phone}"/>
					</td>
					<th>短息提醒：</th>
					<td>
						<select style="height: 24px;width:208px;padding-left:3px;" id="enable_sms" name="enable_sms">
							<option value="1" ${enterprise.enable_sms == "1"?"selected='selected'":""}>启用</option>
							<option value="0" ${enterprise.enable_sms == "0"?"selected='selected'":""}>停用</option>
						</select>
					</td>			
				</tr>
				<tr>
					<th>联系邮箱：</th>
					<td>
						<input type="text" style="height: 24px;width:208px;" name="email" id="email" value="${enterprise.email}"/>
					</td>
					<th>邮件提醒：</th>
					<td>
						<select style="height: 24px;width:208px;padding-left:3px;" id="enable_email" name="enable_email" >
							<option value="1" ${enterprise.enable_email == "1"?"selected='selected'":""}>启用</option>
							<option value="0" ${enterprise.enable_email == "0"?"selected='selected'":""}>停用</option>
						</select>
					</td>
				</tr>			
				 <tr>
					<%-- <th>同步运政：</th>
					<td>
						<select style="height: 24px;width:208px;" id="has_sync" name="has_sync" value="${enterprise.has_sync}" >
							<option value="1" selected="selected">同步</option>
							<option value="0">不同步</option>
						</select>
					</td> --%>
					<th>信息采集系统密码：</th>
					<td>
						<input type="text" style="height: 24px;width:208px;" name="sysPwd" id="sysPwd" value="${enterprise.sysPwd}"/>
					</td>
				</tr>  
			</table>
			</div>
		</form>
	
		<script src="<%=basePath%>resources/js/business/base/enterprise/addEnterpriseForm.js"></script>
</body>
</html>